Last bit of P0006; mark it as complete git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@254290 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/chrono b/include/chrono index aac0587..68484e9 100644 --- a/include/chrono +++ b/include/chrono
@@ -26,6 +26,9 @@ template <class Rep> struct treat_as_floating_point : is_floating_point<Rep> {}; +template <class Rep> constexpr bool treat_as_floating_point_v + = treat_as_floating_point<Rep>::value; // C++17 + template <class Rep> struct duration_values { @@ -413,6 +416,11 @@ template <class _Rep> struct _LIBCPP_TYPE_VIS_ONLY treat_as_floating_point : is_floating_point<_Rep> {}; +#if _LIBCPP_STD_VER > 14 && !defined(_LIBCPP_HAS_NO_VARIABLE_TEMPLATES) +template <class _Rep> _LIBCPP_CONSTEXPR bool treat_as_floating_point_v + = treat_as_floating_point<_Rep>::value; +#endif + template <class _Rep> struct _LIBCPP_TYPE_VIS_ONLY duration_values {